Gets the data model associated with the current activity in the session.
Parent Type: LearningSession
Namespace: Microsoft.LearningComponents
Assembly: Microsoft.LearningComponents.dll
| Exception type | Condition |
| InvalidOperationException | Thrown if there is no current activity in the session. |
Any changes made to the data model must be saved using the CommitChanges method. If CommitChanges is not called and the session is ended, changes to the data model will be lost.
Initially retrieving the data model could be a long-running task involving database or package file parsing. Subsequent property accesses are fast.